package com.yize.datastructure;

public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;
    public TreeNode(int val) {
        this.val = val;
    }

    @Override
    public String toString() {
        return "{" +
                "\"val\":\"" + val + "\"" +
                ", \"left\":\"" + left + "\"" +
                ", \"right\":\"" + right + "\"" +
                "}";
    }
}
